{deps,
    %% not all plugins have to depend on emqx
    [
        %% but if they do, use git_subdir in the default profile
        {emqx, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.0.11"}, "apps/emqx"}},
        %% this is my plugin's dependency
        {map_sets, "1.1.0"},
        {wolff, {git, "https://github.com/kafka4beam/wolff.git", {tag, "1.7.2"}}},
        {brod, {git, "https://github.com/klarna/brod.git", {tag, "3.16.6"}}},
        {trie, {git, "https://github.com/okeuday/trie.git", {tag, "v2.0.5"}}},
        {hocon, {git, "https://github.com/emqx/hocon", {tag, "0.31.2"}}}
    ]}.

{plugins, [
    {emqx_plugrel, {git, "https://github.com/emqx/emqx_plugrel.git", {tag, "0.3.0"}}}
]}.

{erl_opts, [debug_info]}.

%% this is the release version, different from app vsn in .app file
{relx, [
    {release, {emqx_plugin_kafka, "0.1"}, [
        emqx_plugin_kafka,
        map_sets,
        wolff,
        brod,
        trie,
        kafka_protocol,
        snappyer,
        crc32cer,
        telemetry
    ]},
    {dev_mode, false},
    {include_erts, false}
]}.

%% Additional info of the plugin
{emqx_plugrel, [
    {authors, []},
    {builder, []},
    {repo, ""},
    {functionality, ["Demo"]},
    {compatibility, [{emqx, "~> 5.0"}]},
    {description, "This is a emqx kafka plugin"}
]}.

{xref_checks, [
    undefined_function_calls,
    undefined_functions,
    locals_not_used,
    deprecated_function_calls,
    warnings_as_errors,
    deprecated_functions
]}.
